package com.ggb.smartstudy.entity;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NonNull;

/**
 * @author gefangjie
 */
@Data
public class Permission {
    @NonNull
    private Integer id;
    @NotBlank(message = "权限名不能为空")
    @Size(min = 1, max = 50, message = "权限名长度应在6到50个字符之间")
    private String permissionName;
    @Size(max = 255, message = "权限描述长度不能超过255个字符")
    private String description;
}
